package com.hsit.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hsit.dao.WorhDao;

@Service
public class WorkService {

	@Autowired
	private WorhDao worhDao;

	public Object loginCheck(String username, String passwd) {
		return worhDao.loginCheck(username, passwd);
	}
	
	public List userselect(){
		return worhDao.userselect();
		
	}
	
	public void add(String name,String password){
		worhDao.add(name, password);
		
	}
	
	public void delete(String ids){
	
	worhDao.delete(ids);
	}

	public List selectName(String ids){
		return  worhDao.selectName(ids);
		
	}
	public void update(String name,String password,String id){
		worhDao.update(name, password, id);
		
	}
	
}
